An overview of QML with a concrete implementation in Haskell
نویسنده
چکیده
This paper gives an introduction to and overview of the functional quantum programming language QML. The syntax of this language is defined and explained, along with a new QML definition of the quantum teleport algorithm. The categorical operational semantics of QML is also briefly introduced, in the form of annotated quantum circuits. This definition leads to a denotational semantics, given in terms of superoperators. Finally, an implementation in Haskell of the semantics for QML is presented as a compiler. The compiler takes QML programs as input, which are parsed into a Haskell datatype. The output from the compiler is either a quantum circuit (operational), an isometry (pure denotational) or a superoperator (impure denotational). Orthogonality judgements and problems with coproducts in QML are also discussed.
منابع مشابه
A Compiler for a Functional Quantum Programming Language
We introduce a compiler for the functional quantum programming language QML [1], developed in Haskell. The compiler takes QML expressions as input and outputs a representation of quantum circuits (via the category FQC of finite quantum computations) which can be simulated by the simulator presented here, or by using a standard simulator for quantum gates. We discuss the structure of the compile...
متن کاملQuantum Data and Control Made Easier
In this paper we define nQML, a functional quantum programming language that follows the “quantum data and control” paradigm. In comparison to Altenkirch and Grattage’s QML, the control constructs of nQML are simpler and can implement quantum algorithms more directly and naturally. We avoid the unnecessary complexities of a linear type system by using types that carry the address of qubits in t...
متن کاملMedical and Surgical Treatment of Reproductive Outcomes in Polycystic Ovary Syndrome: An Overview of Systematic Reviews
Background Polycystic ovary syndrome (PCOS) is a common and complex condition affecting up to 18% of reproductive-aged women with reproductive, metabolic and psychological dysfunction. We performed an overview and appraisal of methodological quality of systematic reviews assessing medical and surgical treatments for reproductive outcomes in women with PCOS. Methods This was an overview of syste...
متن کاملEFFICIENCY FACTOR OF SUPPLEMENTARY CEMENTITIOUS MATERIALS: A STATE OF ART
The use of supplementary cementing materials is gradually increasing due to technical, economical, and environmental benefits. Supplementary cementitious materials (SCM) are most commonly used in producing ready mixed concrete (RMC). A quantitative understanding of the efficiency of SCMs as a mineral admixture in concrete is essential for its effective utilisation. The performance and effective...
متن کاملAutomatic Testing of Operation Invariance
We present an approach to automatically generating operation invariance tests for use with Haskell’s random testing framework QuickCheck. The motivation stems from a paper by Holdermans [8] which showed how to address certain shortcomings of straightforward testing of implementations of an abstract datatype. While effective, his solution requires extra generation work from the test engineer. Al...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Electr. Notes Theor. Comput. Sci.
دوره 270 شماره
صفحات -
تاریخ انتشار 2011